package com.kotlin.mvpdemo.utils;

import android.widget.Toast;

import com.kotlin.mvpdemo.MainApp;

/**
 * author : fang.zhang
 * e-mail : initzf@126.com
 * date   : 2020/6/6
 * desc   :
 */
public class ToastUtils {

    private static void show(String msg, int time) {
        Toast.makeText(MainApp.getInstance(), msg, time).show();
    }

    public static void showShort(String msg) {
        show(msg, Toast.LENGTH_SHORT);
    }

    public static void showLong(String msg) {
        show(msg, Toast.LENGTH_LONG);
    }
}
